//
//  CasecordApp.swift
//  Casecord
//
//  Created by baozi on 2024/1/2.
//

import SwiftUI

@main
struct CasecordApp: App {
    @StateObject var toastManager = ToastManager.shared
    @StateObject var userService = UserService.shared

    var body: some Scene {
        WindowGroup {
            ContentView()
                .toast(isPresenting: $toastManager.show) {
                    toastManager.toast
                }
                .environmentObject(userService)
        }
        
    }
}
